<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'checkUserFileRecord.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css">
  </head>
  <body>
    <div>
		<s:form action="" name="checkRecord">
			<s:if test="uploadFileList!=null && uploadFileList.size!=0">
				<table align="center" id="shnlist">
					<tr>
					<th>用户</th>
						<th>上传时间</th>
						<th>文件名</th>
					</tr>
					<s:iterator value="uploadFileList" id="row" status="state">
						<!--status.index可以获得索引-->
						<tr>
						<td><input  type="text" readonly="readonly"  name="uploadFileList" value="<s:property value="#row.getUserID()"/>" />
							</td>
							<td><input type="text"  readonly="readonly"   name="uploadFileList" value="<s:property value="#row.getUploadTime()"/>" />
							</td>
							<td>
							<input type="text"  readonly="readonly"   name="uploadFileList" value="<s:property value="#row.getbFilename()"/>"/>
							</td>
						</tr>
					</s:iterator>

				</table>
			</s:if>
			<s:else>
				<p>没有记录！！</p><br/>
			</s:else>
		</s:form>
		<s:form action="" name="checkDownloadRecord">
			<s:if test="downloadFileList!=null && downloadFileList.size!=0">
				<table align="center" id="shnlist">
					<tr>
					<th>用户</th>
						<th>下载时间</th>
						<th>文件名</th>
					</tr>
					<s:iterator value="downloadFileList" id="downrow" status="downstate">
						<!--status.index可以获得索引-->
						<tr>
						<td><input type="text" name="downloadFileList" value="<s:property value="#downrow.getUserid()"/>" />
							</td>
							<td><input type="text" name="downloadFileList" value="<s:property value="#downrow.getDownloadTime()"/>" />
							</td>
							<td>
							<input type="text" name="downloadFileList" value="<s:property value="#downrow.getaFilename()"/>"/>
							</td>
						</tr>
					</s:iterator>
				</table>
			</s:if>
			<s:else>
				<p>没有记录！！</p><br/>
			</s:else>
		</s:form>
		<div class="btnPos">
			<a href="javascript:history.go(-1);">上一页</a>
		</div>
		
	</div>
  </body>
</html>
